<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>寝室情况查询 - 学生宿舍管理系统</title>
	<link rel="shortcut icon" href="/img/head.png" type="image/x-icon">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">

	<link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<body>


<div class="layui-layout layui-layout-admin">
	<div class="layui-header">
		<div class="layui-logo">学生宿舍管理系统</div>
		<!-- 头部区域（可配合layui 已有的水平导航） -->
		<ul class="layui-nav layui-layout-right">
			<li class="layui-nav-item">
				<a href="javascript:;">
					<img src="img/head.png" class="layui-nav-img">
					测试用户
				</a>
				<dl class="layui-nav-child">
					<dd><a href="">set 1</a></dd>
					<dd><a href="">set 2</a></dd>
				</dl>
			</li>
			<li class="layui-nav-item"><a href="">退出</a></li>
		</ul>
	</div>

	<div class="layui-side layui-bg-black">
		<div class="layui-side-scroll">
			<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
			<ul class="layui-nav layui-nav-tree" lay-filter="test">
				<li class="layui-nav-item"><a th:href="'home'">主页</a></li>
				<li class="layui-nav-item">
					<a href="javascript:;">系统管理</a>
					<dl class="layui-nav-child">
						<dd><a href="">用户综合管理</a></dd>
						<dd><a href="">数据库管理</a></dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;">学生管理</a>
					<dl class="layui-nav-child">
						<dd><a th:href="'list'">学生信息浏览</a></dd>
						<dd><a th:href="'add'">学生信息登记</a></dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;">住宿管理</a>
					<dl class="layui-nav-child">
						<dd><a href="">入住管理</a></dd>
						<dd><a href="">宿舍管理</a></dd>
						<dd><a href="">学生退宿</a></dd>
						<dd><a href="">期末注销</a></dd>
					</dl>
				</li>
				<li class="layui-nav-item layui-nav-itemed">
					<a href="javascript:;">查询管理</a>
					<dl class="layui-nav-child">
						<dd ><a th:href="'selectroom'">寝室情况查询</a></dd>
						<dd class="layui-this"><a th:href="'query'">学生情况查询</a></dd>
						<dd><a href="">来访情况查询</a></dd>
						<dd><a href="">设备情况查询</a></dd>
						<dd><a href="">电费情况查询</a></dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;">门卫管理</a>
					<dl class="layui-nav-child">
						<dd><a href="">来访登记</a></dd>
						<dd><a href="">结束登记</a></dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;">寝室管理</a>
					<dl class="layui-nav-child">
						<dd><a href="">寝室床位储息录用</a></dd>
						<dd><a href="">设备管理</a></dd>
						<dd><a href="">宿舍评比</a></dd>
						<dd><a href="">电费管理</a></dd>
					</dl>
				</li>
				<li class="layui-nav-item"><a href="">统计</a></li>
				<li class="layui-nav-item"><a href="">报表</a></li>
			</ul>
		</div>
	</div>

	<div class="layui-body" style="background-color: #F6F6F6;">
		<!-- 内容主体区域 -->
		<div style="padding: 20px;padding-top: 10px;">

			<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="margin-top: 0px;">
				<ul class="layui-tab-title">
					<li class="layui-this">寝室情况查询</li>
				</ul>
				<div class="layui-tab-content">
					<div class="layui-tab-item layui-show">
						<div style="width: 500px;height: 190px; ">
							<div class="layui-card">
								<div class="layui-card-header">查询条件</div>
								<div class="layui-card-body">
									<form class="layui-form" action="/user/student/query_1" method="post">
										<div class="layui-form-item">
											<label class="layui-form-label">学号</label>
											<div class="layui-input-block">
												<input type="text" name="sid" required lay-verify="required" placeholder="请输入学号" autocomplete="off"
													   class="layui-input">
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-input-block">
												<button class="layui-btn" lay-submit lay-filter="formDemo">提交查询</button>
												<button type="reset" class="layui-btn layui-btn-primary">重置</button>
											</div>
										</div>
									</form>
								</div>
							</div>
						</div>
						<div style="width: 1000px;height: 500px;">
							<div class="layui-card">
								<div class="layui-card-header">查询结果</div>
								<div class="layui-card-body">
									<table class="layui-table" lay-size="sm">
										<colgroup>
											<col width="50">
											<col width="50">
											<col>
										</colgroup>
										<thead>
										<tr>
											<th>学号</th>
											<th>姓名</th>
											<th>性别</th>
											<th>学院</th>
											<th>班级</th>
											<th>电话</th>
											<th>宿舍号</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
										</thead>
										<tbody>
										<tr >
											<td th:text="${student.sid}">2018131001</td>
											<td th:text="${student.name}">张三</td>
											<td th:text="${student.sex}">1</td>
											<td th:text="${student.academy}">计算机学院</td>
											<td th:text="${student.grade}">计算机</td>
											<td th:text="${student.tel}">10</td>
											<td th:text="${student.bid}+'-'+${student.did}">男</td>
											<td th:text="${student.state}">汉</td>
											<td>
												<div class="layui-form-item">
													<a th:href="'update_1?sid='+${student.sid}" class="layui-btn" >修改</a>
												</div>
												<div class="layui-form-item">
													<a th:href="'delete?sid='+${student.sid}"  class="layui-btn" >删除</a>
												</div>

											</td>

										</tr>
										</tbody>
									</table>


								</div>
							</div>
						</div>



					</div>
				</div>
			</div>



		</div>

	</div>

</div>

</div>


</div>


</div>
<script src="/layui/layui.js" charset="utf-8"></script>
<script>
    //JavaScript 代码区域
    layui.use('element', function() {
        var element = layui.element;

    });
</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?d214947968792b839fd669a4decaaffc";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>
</html>
